package com.foundationmade.newbiz.business.businesscard.domain;

// Generated 2013. 10. 22 ���� 2:45:08 by Hibernate Tools 4.0.0

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * BusinessCard generated by hbm2java
 */
@Entity
@Table(name = "business_card", catalog = "newbiz")
@DynamicInsert
@DynamicUpdate
public class BusinessCard implements java.io.Serializable
{

	private long cardId;
	private String name;
	private String phoneNumber;
	private String company;
	private String position;
	private String description;
	private Date generatedTimestamp;
	private long generatorId;
	private Date updatedTimestamp;
	private Long updatorId;

	public BusinessCard()
	{
	}

	public BusinessCard(long cardId, String name, Date generatedTimestamp,
			long generatorId)
	{
		this.cardId = cardId;
		this.name = name;
		this.generatedTimestamp = generatedTimestamp;
		this.generatorId = generatorId;
	}

	public BusinessCard(long cardId, String name, String phoneNumber,
			String company, String position, String description,
			Date generatedTimestamp, long generatorId, Date updatedTimestamp,
			Long updatorId)
	{
		this.cardId = cardId;
		this.name = name;
		this.phoneNumber = phoneNumber;
		this.company = company;
		this.position = position;
		this.description = description;
		this.generatedTimestamp = generatedTimestamp;
		this.generatorId = generatorId;
		this.updatedTimestamp = updatedTimestamp;
		this.updatorId = updatorId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "CardId", unique = true, nullable = false)
	public Long getCardId()
	{
		return this.cardId;
	}

	public void setCardId(long cardId)
	{
		this.cardId = cardId;
	}

	@Column(name = "Name", nullable = false, length = 30)
	public String getName()
	{
		return this.name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	@Column(name = "PhoneNumber", length = 13)
	public String getPhoneNumber()
	{
		return this.phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber)
	{
		this.phoneNumber = phoneNumber;
	}

	@Column(name = "Company", length = 50)
	public String getCompany()
	{
		return this.company;
	}

	public void setCompany(String company)
	{
		this.company = company;
	}

	@Column(name = "Position", length = 40)
	public String getPosition()
	{
		return this.position;
	}

	public void setPosition(String position)
	{
		this.position = position;
	}

	@Column(name = "Description", length = 65535)
	public String getDescription()
	{
		return this.description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "GeneratedTimestamp", nullable = false, length = 19)
	public Date getGeneratedTimestamp()
	{
		return this.generatedTimestamp;
	}

	public void setGeneratedTimestamp(Date generatedTimestamp)
	{
		this.generatedTimestamp = generatedTimestamp;
	}

	@Column(name = "GeneratorId", nullable = false)
	public long getGeneratorId()
	{
		return this.generatorId;
	}

	public void setGeneratorId(long generatorId)
	{
		this.generatorId = generatorId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UpdatedTimestamp", length = 19)
	public Date getUpdatedTimestamp()
	{
		return this.updatedTimestamp;
	}

	public void setUpdatedTimestamp(Date updatedTimestamp)
	{
		this.updatedTimestamp = updatedTimestamp;
	}

	@Column(name = "UpdatorId")
	public Long getUpdatorId()
	{
		return this.updatorId;
	}

	public void setUpdatorId(Long updatorId)
	{
		this.updatorId = updatorId;
	}

}
